package com.duwei.ttt;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.SpringApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ApplicationTest {

    @Resource
    @Qualifier("orderService")
    private OrderService orderService4;

    public ApplicationTest(OrderService orderService) {
        this.orderService4 = orderService4;
    }

    public void test(){
        System.out.println(orderService4);
    }

}
